﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IDotNet.MapLibs.Model
{
    /// <summary>
    /// 坐标
    /// </summary>
    public class PointModel
    {
        /// <summary>
        /// 经度
        /// </summary>
        public double lng { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        public double lat { get; set; }

        /// <summary>
        /// 纬度,经度
        /// </summary>
        /// <param name="format"></param>
        /// <returns></returns>
        public string ToLatLng(string format = "{0},{1}")
        {
            return format.FormatWith(lat.ToString(), lng.ToString());
        }
    }
}
